package cn.edu.scau.cmi.zhuangjunsheng.comprehensiveExperiment;

import cn.edu.scau.cmi.zhuangjunsheng.singleton.Chairman;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;

public class InterUI {
	
	@FXML
	private TextField tf;
	
	@FXML
	private TextArea ta;
	
	@FXML
	public void onTF(ActionEvent av) throws Exception {
		String name = tf.getText();
		if(name.equals("学生")) {
			ta.clear();
			ta.appendText("996 programming!!\n");
		}
		else {
			ta.clear();
			ta.appendText("007 researching!!\n");
		}
	} 

}
